package com.yy.wga.common.web.exception;

import com.yy.wga.common.core.enmus.ResponseCode;

/**
 * 1开头为用户权限
 * 2开头为工具异常
 * 3开头为订单异常
 * 工具使用异常码
 *
 * @author guochao
 * @date 2021/6/1
 */
public enum EOrderRespCode implements ResponseCode {
    /**
     * 订单使用异常码
     */
    WAIT_PAY("30000", "订单待支付"),
    CANCEL("30001", "订单取消"),
    ;

    /**
     * 响应码
     */
    private String code;
    /**
     * 响应信息
     */
    private String describe;

    EOrderRespCode(String code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescribe() {
        return describe;
    }
}
